#include "udp_server.hpp"


//udp_server port
//INADDR_ANY -> 0
int main(int argc, char* argv[])
{
  if(argc != 2){
    std::cerr << "Usage: " << argv[0] << "port" << std::endl;
    return 1;
  }

  //std::string ip = "127.0.0.1"; // 127.0.0.1 == localhost : 标识本主机 : 本地环回
  //std::string ip = "117.155.129.165";
  int port = atoi(argv[1]);

  UdpServer *svr = new UdpServer(port);
  svr->InitUdpServer();

  svr->Start();
  return 0;
}
